#pragma once

#include "../umlmodel_global.h"

#include <memory>
#include <vector>

#include "StructuralFeatureAction.h"

using std::make_shared;
using std::shared_ptr;
using std::vector;

namespace uml {
class OutputPin;

/// <summary>
/// ClearStructuralFeatureAction
/// A ClearStructuralFeatureAction is a StructuralFeatureAction that removes all
/// values of a StructuralFeature.
/// </summary>
class UMLMODEL_EXPORT ClearStructuralFeatureAction : public StructuralFeatureAction {

public: // Constructors and destructors
    explicit ClearStructuralFeatureAction(const QString& umlType="uml::ClearStructuralFeatureAction");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// result getter
    /// The OutputPin on which is put the input object as modified by the
    /// ClearStructuralFeatureAction.
    /// </summary>
    shared_ptr<OutputPin> result() const;

    /// <summary>
    /// result setter
    /// The OutputPin on which is put the input object as modified by the
    /// ClearStructuralFeatureAction.
    /// </summary>
    void setResult(shared_ptr<OutputPin> value);

private: // Fields
    /// <summary>
    /// result
    /// The OutputPin on which is put the input object as modified by the
    /// ClearStructuralFeatureAction.
    /// </summary>
    shared_ptr<OutputPin> result_;

};

} // namespace uml
